<template>
  <div>
    <h1>
      固定资产
    </h1>
    <el-divider></el-divider>

    <template>
      <el-table
          ref="multipleTable"
          :data="tableData"
          tooltip-effect="dark"
          style="width: 100%"
          @selection-change="handleSelectionChange">
        <el-table-column
            type="selection"
            width="55">
        </el-table-column>
        <el-table-column
            prop="number"
            label="序号"
            show-overflow-tooltip>
          <template slot-scope="scope">{{ scope.row.date }}</template>
        </el-table-column>
        <el-table-column
            prop="classification"
            label="资产类别"
            show-overflow-tooltip>
        </el-table-column>
        <el-table-column
            prop="name"
            label="资产名称"
            show-overflow-tooltip>
        </el-table-column>
        <el-table-column
            prop="Asset Number"
            label="资产编号"
            show-overflow-tooltip>
        </el-table-column>
        <el-table-column
            prop="model"
            label="规格型号"
            show-overflow-tooltip>
        </el-table-column>
        <el-table-column
            prop="quantity"
            label="数量"
            show-overflow-tooltip>
        </el-table-column>
        <el-table-column
            prop="date"
            label="购买/验收日期"
            show-overflow-tooltip>
        </el-table-column>
        <el-table-column
            prop="original value"
            label="资产原值"
            show-overflow-tooltip>
        </el-table-column>
        <el-table-column
            prop="Status"
            label="资产状态"
            show-overflow-tooltip>
        </el-table-column>
        <el-table-column
            prop="corporation"
            label="使用公司"
            show-overflow-tooltip>
        </el-table-column>
        <el-table-column
            prop="department"
            label="使用部门"
            show-overflow-tooltip>
        </el-table-column>
        <el-table-column
            prop="place"
            label="存放地点"
            show-overflow-tooltip>
        </el-table-column>
        <el-table-column
            prop="User"
            label="使用人"
            show-overflow-tooltip>
        </el-table-column>
        <el-table-column
            prop="remarks"
            label="备注"
            show-overflow-tooltip>
        </el-table-column>
        <el-table-column
            prop="year"
            label="年份"
            show-overflow-tooltip>
        </el-table-column>
        <el-table-column
            prop="status"
            label="状态"
            show-overflow-tooltip>
        </el-table-column>
      </el-table>

      <div class="block">
        <el-pagination
            @size-change="handleSizeChange"
            @current-change="handleCurrentChange"
            :current-page="currentPage4"
            :page-sizes="[100, 200, 300, 400]"
            :page-size="100"
            layout="total, sizes, prev, pager, next, jumper"
            :total="400">
        </el-pagination>
      </div>
    </template>
  </div>
</template>

<script>
export default {
  name: "fixed assets",
  data() {
    return {
      tableData: [],
      multipleSelection: [],
      currentPage1: 5,
      currentPage2: 5,
      currentPage3: 5,
      currentPage4: 4
    }
  },
  methods: {
    handleSizeChange(val) {
      console.log(`每页 ${val} 条`);
    },
    handleCurrentChange(val) {
      console.log(`当前页: ${val}`);
    }
  }
}
</script>

<style scoped>

</style>